package com.xiaozhen.common.core.domain.system;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xiaozhen.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * HISTORY
 *
 * @author zhenweisheng
 * @date 2021/9/27 9:02
 * @description:
 */
@Data
@TableName("sys_tenant")
@ApiModel(description = "系统租户表")
public class SysTenant extends BaseEntity {

    @TableId
    @ApiModelProperty("主键")
    private Long tenantId;

    @ApiModelProperty(value = "租户名称")
    private String tenantName;

    @ApiModelProperty(value = "域名地址")
    private String domain;

    @ApiModelProperty(value = "联系人")
    private String linkman;

    @ApiModelProperty(value = "联系电话")
    private String contactNumber;

    @ApiModelProperty(value = "联系地址")
    private String address;

    @TableLogic
    @ApiModelProperty(value = "删除标志（0代表存在 1代表删除）")
    private String delFlag;

    @TableField(exist = false)
    @ApiModelProperty(value = "用户数量")
    private Integer userNum;

}
